package model;


public class LigneCommande 
{
	Plat p;
	int qty;
	
	public LigneCommande(Plat _p, int _qty)
	{
		setPlat(_p);
		setQty(_qty);
	}
	
	public Plat getPlat()
	{
		return p;
	}
	
	public int getQty()
	{
		return qty;
	}
	
	public void setPlat(Plat _p)
	{
		p = _p;
	}
	
	public void setQty(int _qty)
	{
		qty = _qty;
	}
	
	@Override
	public String toString() 
	{
		return qty + "x " + p.toString();
	}
}
